<?php
	class Admin_model extends CI_Model {
		public $table_name='admin';
	    public function get_admin($name,$pass){
	    	$array=array('username'=>$name,'password'=>$pass);
	        $query = $this->db->where($array)->get($this->table_name);
	        return $query->row();
	    }
	}